package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

import java.time.LocalDateTime;

/**
 * 猫咪对象 sys_cat
 *
 * @author mars
 * @date 2024-03-29
 */

@Data
@ApiModel(value = "猫咪对象")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("sys_cat")
public class SysCat  {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 昵称
     */
    @Excel(name = "昵称")
    @ApiModelProperty(value = "昵称")
    private String name;
    /**
     * 性别
     */
    @Excel(name = "性别")
    @ApiModelProperty(value = "性别")
    private String sex;
    /**
     * 猫种
     */
    @Excel(name = "猫种")
    @ApiModelProperty(value = "猫种")
    private String type;
    /**
     * 绝育情况
     */
    @Excel(name = "绝育情况")
    @ApiModelProperty(value = "绝育情况")
    private String sterilization;
    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String url;

    @Excel(name = "封面图片")
    @ApiModelProperty(value = "封面图片")
    private String urlIndex;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人ID")
    private Long createById;


    @TableField(exist = false)
    @ApiModelProperty(value = "是否收藏：1-是0-否")
    private String isCollect;
}
